<%@ page language="java" import="java.util.*,com.fescoservice.model.*" pageEncoding="UTF-8"%>
<%@page import="com.fescoservice.config.PropertiesConfig"%>

<%
	String langfilename = "/resources/message";
//	Long countl =request.getAttribute("counts")==null?0:(Long) request.getAttribute("counts");
	//String counts = Long.toString(countl);
	//List customerlist =request.getAttribute("customerlist")==null?new ArrayList():(List<Company>) request.getAttribute("customerlist");
	String serchOptionSel =  request.getAttribute("SerchOptionSel")==null?"":(String)request.getAttribute("SerchOptionSel");
	String serchOptionValue =  request.getAttribute("SerchOptionValueSel")==null?"":(String)request.getAttribute("SerchOptionValueSel");
//	int listSize=PropertiesConfig.getInstance().getInt("ListSize.Customer");
//	int pageNumber =(Integer) request.getAttribute("pageNumber");
//	int pageCount =(countl.intValue()/listSize)+((0==countl.intValue()%listSize)?0:1);
	
	Customer cust =(Customer) request.getAttribute("Customer");


	//String userId =  request.getAttribute("userId")==null?"":(String)request.getAttribute("userId");
	//String userRole =  request.getAttribute("userRole")==null?"":(String)request.getAttribute("userRole");
	//String userDept =  request.getAttribute("userDept")==null?"":(String)request.getAttribute("userDept");
	

	List applicationslist =request.getAttribute("applicationslist")==null?new ArrayList():(List<Application>) request.getAttribute("applicationslist");

	String custId =  request.getAttribute("custId")==null?"":(String)request.getAttribute("custId");	
	Application apply =  (Application)request.getAttribute("application");
	
	
%>
<%@include file="../common/LocaleManager.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Fesco Service</title>
		<link rel="stylesheet" href="<%=path%>/js/jquery/themes/redmond/jquery.ui.all.css">
		<script src="<%=path%>/js/jquery/jquery-1.5.1.js"></script>
		<script src="<%=path%>/js/jquery/external/jquery.bgiframe-2.1.2.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.widget.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.mouse.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.button.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.draggable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.position.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.resizable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.dialog.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.slide.js"></script>
		<script src="<%=path%>/js/jquery/jquery.pager.js"></script>
		<link rel="stylesheet" href="<%=path%>/css/admin.css">
		<link rel="stylesheet" href="<%=path%>/css/hrpage.css">
		<style type="text/css">
			#ValidDateTips{
				z-index: 100; 
				border: 1px solid #b9c9ef; 
				position: fixed;  
				width: 260px; 
				bottom: 2px; 
				display: block; 
				background: white; 
				height: 200px; 
				overflow: hidden; 
				right: 0px; 
			}
			.tipsHeader{
				border: #fff 1px solid; 
				border-bottom: medium none; 
				background-color: rgb(102,153,204); 
				width: 100%; 
				height: 25px; 
				font-size: 12px; 
				overflow: hidden; 
			}
			#tipsButton{
				text-align: center; 
				padding:5px 0 5px 0;
				width: 16px;  
				float: right; 
				color: white; 
				font-size: 12px; 
				overflow: hidden; 
				cursor: pointer; 
				font-weight: bold; 
			}
		</style>
		<script type="text/javascript">
			$(function() {
				
				$("#btnPrint").button().click(function() {
						
				});
			
				
				$("#btnBack").button().click(function() {
					document.forms.mainForm.action = '<%=path%>/action/Customer.htm?cmd=viewCustomer&Flag=hrLogin';	
					//document.forms.mainForm.custId.value = custId;
					document.forms.mainForm.submit();		
				});
				
				
			});
			
					
		</script>
	</head>
	<body>
	<div style="float:right">
		<a href="<%=basePath%>action/Login.htm?cmd=logout" ><%=resource.getString("FS_T_LOGOUT") %></a>
	</div>	
<div class="content">
<div class="back">
	<div class="menu">
		<ul>
			<li class="on"><a href="http://www.fescoservice.com" title="Search">送件查询</a></li>
			<li><a href="http://www.fescoservice.com" title="Visa, Invitation Letter, Employment License, Work Permit, Foreign Expert Certificate, Residence Permit and Company 

Registration Service...">签证服务</a></li>
			<li><a href="http://www.fescoservice.com" title="Exit-Entry Services for Chinese citizens Including studying abroad, business trips, visit relatives or friends...">出境服务

</a></li>
			<li><a href="http://www.fescoservice.com" title="China Driver License Application&Replacement, Motor Vehicle Registration&Rental One-Stop Service...">涉外车务</a></li>
			<li><a href="http://www.fescoservice.com" title="Report">报表分析</a></li>
		</ul>
	</div>	
<!-- header begins -->
<div class="header">
	<div class="logo">
		<h1><a href="http://www.fescoservice.com/" title="free-css-templates">外企晨光</a></h1>
		<h2><a href="http://www.fescoservice.com/e/" id="metamorph">  Beijing FESCO Chenguang Labor Service Co.,Ltd.</a></h2>
	</div>
	<div class="toptext">
	<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作为北京外企服务集团的成员企业，北京外企晨光劳务服务有限责任公司(Beijing FESCO Chenguang Labour Service Co.,Ltd.)成立于1994年，是为外籍人员、港澳台人员来华工作和生活提供全面的信息咨询及

代理服务、为中国公民提供因私出入境中介服务的专业涉外服务公司。经过多年发展，公司如今已取得国家和相关部门的多项涉外服务授权和合法资质，服务范围拓展到了多个方面。</p>
	<p class="more"><a href="http://www.fescoservice.com/c/ourcompany.php" target="_blank">more...</a></p>
	</div> 	
</div>
<!-- header ends -->
<!-- content begins -->
 <div class="main">
	<div class="right">
		
		
		<div class="wrapContent">	
			
			<form name="mainForm" method="post">
				<input type="hidden" name="page" value="" />
				
				<div class="ui-widget categorylist">
					<table>
						<tr ><td width="15%"  class="operTR0" >						
							<label for="applyKey">
								<%=resource.getString("FS_T_APPLICATION_APPLY_KEY")%>
							</label>
							</td>
							<td width = "35%" class="operTR1"> 
							<input type="hidden" name="custId" class=" ui-corner-all" value="<%=apply.getCustId() %>" />	

							<%if("A".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_AUTH")%>
							<%}else if("B".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_VISA_INVITATION")%>
							<%}else if("C".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK")%>
							<%}else if("D".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_LIVE_AUTH")%>
							<%}else if("E".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_DELAY")%>
							<%}else if("F".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_DRIVE")%>
							<%}else if("G".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_ABORD")%>
							<%}	%>			
						</td>
						<td width="15%"  class="operTR0" >			
							<label for="finifhDate">
								<%=resource.getString("FS_T_APPLICATION_FINISH_DATE")%>
							</label>
							</td>
							<td  width= "35%" class="operTR1"> 
							<input type="hidden" name="SerchOptionSel" class=" ui-corner-all" value="<%=serchOptionSel %>" />	
							<input type="hidden" name="SerchOptionValueSel" class=" ui-corner-all" value="<%=serchOptionValue %>" />
							<%=apply.getFinifhDate() %>
						</td>
						</tr>						
						<tr><td>			
							<label for="fee">
								<%=resource.getString("FS_T_APPLICATION_FEE")%>
							</label>
							</td>
							<td>
							<%=apply.getFee() %>
						</td>

						<td>				
							<label for="serviceCost">
								<%=resource.getString("FS_T_APPLICATION_SERVICE_COST")%>
							</label></td><td>
							<%=apply.getServiceCost()%>						
						</td>
						</tr>
						<tr><td>						
							<label for="preDate">
								<%=resource.getString("FS_T_APPLICATION_PRE_DATE")%>
							</label>
							</td><td>
								<%=apply.getPreDate()%>
							
						</td><td>	
							<label for="payDate">
								<%=resource.getString("FS_T_APPLICATION_PAY_DATE")%>
							</label>
						</td><td>
							<%=apply.getPayDate()%>
						</td></tr>
						
						<tr><td>						
							<label for="hrId">
								<%=resource.getString("FS_T_APPLICATION_HR_ID")%>
							</label></td><td>
							<%=apply.getHrId()%>
						</td><td>						
							<label for="serviceNumber">
								<%=resource.getString("FS_T_APPLICATION_SERVICE_NUMBER")%>
							</label></td><td>
							<%=apply.getServiceNumber()%>
						</td></tr>
						<tr><td>						
							<label for="applyType">
								<%=resource.getString("FS_T_APPLICATION_APPLY_TYPE")%>
							</label></td><td>							
							
							<%if("1".equals(apply.getApplyType())){%>
								<%=resource.getString("FS_T_APPLY_FIRST")%>
							<%}else if("2".equals(apply.getApplyType())){%>
								<%=resource.getString("FS_T_APPLY_CONTINUE")%>
							<%}	%>
						</td><td>						
							<label for="status">
								<%=resource.getString("FS_T_APPLICATION_STATUS")%>
							</label></td><td>
							<%if("1".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_NOT")%>
							<%}else if("2".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_ING")%>
							<%}else if("3".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_FINISH")%>
							<%}%>
		
						</td></tr>
						<tr><td>						
							<label for="applyArea">
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA")%>
							</label></td><td>
							
							<%if("1".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_1")%>
							<%}else if("2".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_2")%>
							<%}else if("3".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_3")%>
							<%}else if("4".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_4")%>
							<%}%>
					</td><td>						
							<label for="feeStatus">
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS")%>
							</label></td><td>
							<%if("1".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_NOT")%>
							<%}else if("2".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_FINISH")%>
							<%}%>
		
						</td></tr>
						<tr><td width = "15%">						
							<label for="memo">
								<%=resource.getString("FS_T_APPLICATION_MEMO")%>
							</label></td><td colspan = "3">
							<%=apply.getMemo()%>							
						</td></tr>
						</table>
				</div>

			</form>	


				<div class="buttonGroupRight">

			   		<div id="btnBack" ><%=resource.getString("FS_T_LIST")%></div>
					<div id="btnPrint" ><%=resource.getString("FS_T_PRINT")%></div>
				</div>	

		</div>
		
		
		
		
	</div>
  
  	<%@include file="../common/left.jsp"%>
</div>
<!--content ends -->
<%@include file="../common/footer.jsp"%>
</div>
</div>

		<script type="text/javascript"	>	
		//import scripts below to pages which display in right frame, for ajust the scroll height
		parent.scroll(0,0);
		parent.setFrameHeight(document.body.scrollHeight+200);
		</script>
	</body>
</html>